package part3;
/**
 * J5Ex11Enums 
 *   Example of enumeration classes
 * @author tony
 *
 */

public class J5Ex11Enums {

	public enum Modes{
		STOP,
		START,
		FORWARD,
		REVERSE
	}
	
	public static void main(String[] args){
		Modes m1 = Modes.STOP;
		
		final Modes mf = Modes.FORWARD;
		
		System.out.println( " Mode m1 is     " + m1 );

		m1 = mf;
		System.out.println( " Mode m1 is now " + m1 );
	}
}
